/**
 * 
 */
package com.iwords.service.object;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

import com.oasis.iwords.lucene.annotation.IndexField;

/**
 * @author       BOLIN.HBC 
 * @time         2011-5-1    
 * @description  例句-Entity      
 */
@Entity
@Table(name = "examsentences")
public class ExamSentencesEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * sentenceid
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@IndexField("sid")
	private Long sentenceid;

	/**
	 * sentence
	 */
	@IndexField("sen")
	private String sentence;
	/**
	 * paraphrase
	 */
	private String paraphrase;
	/**
	 * examid
	 */
	@IndexField("eid")
	private Integer examid;
	/**
	 * itemid
	 */
	@IndexField("iid")
	private Integer itemid;
	/**
	 * createtime
	 */
	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
	private Date createtime;
	/**
	 * updatetime
	 */
	@Temporal(javax.persistence.TemporalType.TIMESTAMP)
	private Date updatetime;

	 

	/**
	 * @return the sentenceid
	 */
	public Long getSentenceid() {
		return sentenceid;
	}

	/**
	 * @param sentenceid the sentenceid to set
	 */
	public void setSentenceid(Long sentenceid) {
		this.sentenceid = sentenceid;
	}

	public String getSentence() {
		return this.sentence;
	}

	public void setSentence(String sentence) {
		this.sentence = sentence;
	}

	public String getParaphrase() {
		return this.paraphrase;
	}

	public void setParaphrase(String paraphrase) {
		this.paraphrase = paraphrase;
	}

	public Integer getExamid() {
		return this.examid;
	}

	public void setExamid(Integer examid) {
		this.examid = examid;
	}

	public Integer getItemid() {
		return this.itemid;
	}

	public void setItemid(Integer itemid) {
		this.itemid = itemid;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Date getUpdatetime() {
		return this.updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

    @Override
    public String toString() {
        return "ExamSentencesEntity{" +
                "sentenceid=" + sentenceid +
                ", sentence='" + sentence + '\'' +
                ", paraphrase='" + paraphrase + '\'' +
                ", examid=" + examid +
                ", itemid=" + itemid +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                '}';
    }
}
